﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Tomers.WPF.Localization;
using GameEngine;

namespace Daphne.Forms
{
    /// <summary>
    /// Interaction logic for SelectOnMove.xaml
    /// </summary>
    public partial class SelectOnMove : Window
    {
        public SelectOnMove()
        {
            InitializeComponent();

            uxMessage.Text = LanguageContext.Instance.Dictionary.Translate<string>("FRM_STM_Title", "Title") + ":";
            this.Title = LanguageContext.Instance.Dictionary.Translate<string>("TT_SideToMove", "ToolTip");
            uxWhite.Click += new RoutedEventHandler(uxWhite_Click);
            uxBlack.Click += new RoutedEventHandler(uxBlack_Click);
        }

        void uxBlack_Click(object sender, RoutedEventArgs e)
        {
            OnMove = enumFigureColor.Black;
            this.Close();
        }

        void uxWhite_Click(object sender, RoutedEventArgs e)
        {
            OnMove = enumFigureColor.White;
            this.Close();
        }

        public enumFigureColor OnMove
        { get; set; }
    }
}
